package com.qdc.datacenters.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdc.datacenters.domain.query.sensitive.SensitiveRecordQuery;
import com.qdc.datacenters.domain.query.statistics.StatisticsQuery;
import com.qdc.datacenters.domain.vo.sensitive.SensitiveGroupRecordVo;
import com.qdc.datacenters.domain.vo.sensitive.SensitiveSingleRecordVo;
import com.qdc.datacenters.domain.vo.statistics.SensitiveCustomerRankVo;
import com.qdc.datacenters.domain.vo.statistics.SensitiveStatisticsListVo;
import com.qdc.datacenters.domain.vo.statistics.SensitiveUserRankVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.qdc.datacenters.domain.entity.SensitiveWordsResult;

import java.util.List;

/**
 * 敏感词触发结果(SensitiveWordsResult)表数据库访问层
 *
 * @author danmo
 * @since 2024-03-11 16:13:58
 */
@Repository()
@Mapper
public interface SensitiveWordsResultMapper extends BaseMapper<SensitiveWordsResult> {

    List<SensitiveSingleRecordVo> singleRecordList(SensitiveRecordQuery query);

    List<SensitiveGroupRecordVo> groupRecordList(SensitiveRecordQuery query);

    List<SensitiveUserRankVo> sensitiveSingleUserRank(StatisticsQuery query);

    List<SensitiveCustomerRankVo> sensitiveSingleCustomerRank(StatisticsQuery query);

    List<SensitiveUserRankVo> sensitiveGroupUserRank(StatisticsQuery query);

    List<SensitiveCustomerRankVo> sensitiveGroupCustomerRank(StatisticsQuery query);

    List<SensitiveStatisticsListVo> sensitiveStatistic(StatisticsQuery query);
}

